package STUDENT.TRANNGUYENQUAN.OOPs.OBJECT_AND_CLASSES.OddEven;

public class Controllers {
	Models model = new Models();

	public String Check(MyInteger num) {
		String result = "";
		if (model.isEven(num)) {
			result = num.getValue() + " la so chan!";
		}
		if (model.isPrime(num)&& num.getValue() > 1) {
				result = num.getValue() + " la so nguyen to!";
		}
		if (model.isOdd(num)){
			result += num.getValue()+" la so le!";
		}
		return result;
	}
}
